﻿<phone:PhoneApplicationPage
    x:Class="OpenThesaurus.Options"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot ist das Stammraster, in dem alle anderen Seiteninhalte platziert werden-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel enthält den Namen der Anwendung und den Seitentitel-->

        <!--ContentPanel - zusätzliche Inhalte hier platzieren-->
        <StackPanel Grid.Row="0" Margin="12,17,0,28">
        	<TextBlock x:Name="txtTitle" Style="{StaticResource PhoneTextTitle1Style}" FontSize="64" Text="{Binding LocalizedResources.TitleOptions, Mode=OneWay, Source={StaticResource LocalizedStrings}}"/>
        </StackPanel>
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0" Loaded="ContentPanel_Loaded" >
        	<Grid.RowDefinitions>
        		<RowDefinition Height="Auto"/>
        		<RowDefinition Height="Auto"/>
        		<RowDefinition Height="Auto"/>
        		<RowDefinition Height="Auto"/>
        	</Grid.RowDefinitions>
        	<CheckBox x:Name="cbSimilarResults" VerticalAlignment="Top" Margin="0,15" Checked="cbSimilarWords_Checked" Unchecked="cbSimilarWords_Unchecked">
        		<TextBlock TextWrapping="Wrap" Text="{Binding LocalizedResources.OptionSimilarWords, Mode=OneWay, Source={StaticResource LocalizedStrings}}"/>
        	</CheckBox>
        	<CheckBox x:Name="cbSubstrings" VerticalAlignment="Top" Grid.Row="2" Checked="cbSubstrings_Checked" Unchecked="cbSubstrings_Unchecked">
        		<TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding LocalizedResources.OptionSubString, Mode=OneWay, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Top"/>
        	</CheckBox>
        </Grid>

        <!--ContentPanel - zusätzliche Inhalte hier platzieren-->
    </Grid>

</phone:PhoneApplicationPage>